﻿@model KnowledgeCommunity.Model.Knowledge
@{
    ViewBag.Title = "审批";
    Layout = "~/Views/Shared/_Layout_zone.cshtml";
}
<div class="contentcontainer">
    <div class="headings">
      <h2>审批</h2>
    </div>
    <div class="contentbox">
        @using (Html.BeginForm("ApproveK", "Zone", FormMethod.Post, new { enctype = "multipart/form-data" }))
        {
             @Html.ValidationSummary(true)
            @Html.HiddenFor(model => model.Id)

            <table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tbody>
                    <tr>
                        <th width="200px">
                            编号
                        </th>
                        <td>
                            @Html.DisplayFor(model => model.ShapeCode)
                        </td>
                        <th width="200px">
                            标题
                        </th>
                        <td>
                            @Html.DisplayFor(model => model.Title)
                        </td>
                    </tr>
                    <tr>
                        <th>
                            状态
                        </th>
                        <td>@Enum.GetName(typeof(KnowledgeCommunity.Service.Enum.KFirstSort), Model.FirstSort)
                        </td>
                        <th>
                            关注次数
                        </th>
                        <td>
                            @Html.DisplayFor(model => model.ClickNum)
                        </td>
                    </tr>
                    <tr>
                        <th>
                            创建者
                        </th>
                        <td>
                            @Html.DisplayFor(model => model.UserName)
                        </td>
                        <th>
                            创建时间
                        </th>
                        <td>
                            @Html.DisplayFor(model => model.AddTime)
                        </td>
                    </tr>
                    <tr>
                        <th>
                            类型1
                        </th>
                        <td>
                            @Html.DisplayFor(model => model.FirstSort)
                        </td>
                        <th>
                            类型2
                        </th>
                        <td>
                            @Html.DisplayFor(model => model.SecondSort)
                        </td>
                    </tr>
                    <tr>
                        <th colspan="4">
                            知识内容
                        </th>
                    </tr>
                    <tr>
                        <td colspan="4">
                            @(new MvcHtmlString(Model.Content))
                        </td>
                    </tr>
                </tbody>
            </table>
            <input type="submit" class="btn" id="approved" value=" 审批通过 >> " />
        }
        <div style="clear: both;">
        </div>
    </div>
</div>
